Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve line filters and substitution filters #2032

Merged
merged 14 commits into from
Sep 20, 2023

Conversation

sdottaka
Copy link
Member

@sdottaka sdottaka commented Sep 13, 2023

Currently, when a diff hunk contains both line filtered lines and unfiltered lines, as shown below, the differences between the filtered lines in the diff hunk were not ignored.

image

This PR improves the differences between the filtered lines to be ignored as follows:

image

Src/DiffWrapper.cpp Fixed Show fixed Hide fixed
Src/DiffWrapper.cpp Fixed Show fixed Hide fixed
Src/DiffWrapper.cpp Fixed Show fixed Hide fixed
Src/DiffWrapper.cpp Fixed Show fixed Hide fixed
@sdottaka sdottaka changed the title WIP: Improve substitution filters Improve line filters and substitution filters Sep 20, 2023
Src/DiffWrapper.cpp Fixed Show fixed Hide fixed
if (c == '\r')
{
if (i + 1 < lines.length() && lines[i + 1] == '\n')
i++;

Check notice

Code scanning / CodeQL

For loop variable changed in body Note

Loop counters should not be modified in the body of the
loop
.
@sdottaka sdottaka added this to the v2.16.33 milestone Sep 20, 2023
@sdottaka sdottaka marked this pull request as ready for review September 20, 2023 11:48
@sdottaka sdottaka merged commit 70f1f97 into master Sep 20, 2023
2 of 3 checks passed
@sdottaka sdottaka deleted the improve-substitution-filters branch September 20, 2023 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant